import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    // 首页
    path: '/',
    name: 'home',
    component: () => import('@/views/home')
  },
  {
    // 首页 -> 高手榜单入口
    path: '/tradeOrder',
    name: 'tradeOrder',
    component: () => import('@/views/tradeOrder')
  },
  {
    // 跟随详情 (高手榜单 -> 跟随详情)
    path: '/tradeOrderDetail',
    name: 'tradeOrderDetail',
    component: () => import('@/views/tradeOrder/tradeOrderDetail')
  },
  {
    // 查看大神持仓 (高手榜单 -> 跟随详情 -> 当前/历史订单)
    path: '/tradeOrderPosition',
    name: 'tradeOrderPosition',
    component: () => import('@/views/tradeOrder/tradeOrderPosition')
  },
  {
    // 跟随高手 (高手榜单 -> 跟随详情 -> 跟随高手)
    path: '/tradeOrderFollow',
    name: 'tradeOrderFollow',
    component: () => import('@/views/tradeOrder/tradeOrderFollow')
  },
  {
    // 首页 -> 理财产品介绍入口
    path: '/wealth',
    name: 'wealth',
    component: () => import('@/views/wealth')
  },
  {
    // 理财产品 (首页 -> 理财产品介绍入口 -> 我要参与)
    path: '/wealthList',
    name: 'wealthList',
    component: () => import('@/views/wealth/wealthList')
  },
  {
    // 委托订单 (首页 -> 理财产品介绍入口 -> 我要参与 -> 委托订单)
    path: '/financialTradeList',
    name: 'financialTradeList',
    component: () => import('@/views/wealth/financialTradeList')
  },
  {
    // 产品详情 (首页 -> 理财产品介绍入口 -> 我要参与 -> 点击产品)
    path: '/wealthOpen',
    name: 'wealthOpen',
    component: () => import('@/views/wealth/wealthOpen')
  },
  {
    // 行情
    path: '/quotation',
    name: 'quotation',
    component: () => import('@/views/quotation')
  },
  {
    // 交易
    path: '/market',
    name: 'market',
    component: () => import('@/views/market')
  },
  {
    // 实时数据/实时成交  （交易 -> 实时数据/实时成交）
    path: '/tradeRecord',
    name: 'tradeRecord',
    component: () => import('@/views/market/tradeRecord')
  },
  {
    // 合约交易  （交易 -> 合约）
    path: '/GJmarket',
    name: 'GJmarket',
    component: () => import('@/views/market/GJmarket')
  },
  {
    // 资产
    path: '/property',
    name: 'property',
    component: () => import('@/views/property')
  },
  {
    // 充值
    path: '/recharge',
    name: 'recharge',
    component: () => import('@/views/property/recharge')
  },
  {
    // 充值明细
    path: '/rechargeinfo',
    name: 'rechargeinfo',
    component: () => import('@/views/property/rechargeinfo')
  },
  {
    // 提现
    path: '/withdraw',
    name: 'withdraw',
    component: () => import('@/views/property/withdraw')
  },
  {
    // USDT提现
    path: '/withdrawUSDT',
    name: 'withdrawUSDT',
    component: () => import('@/views/property/withdrawUSDT')
  },
  {
    // AUD提现
    path: '/withdrawAUD',
    name: 'withdrawAUD',
    component: () => import('@/views/property/withdrawAUD')
  },
  {
    // 提现明细
    path: '/withdrawinfo',
    name: 'withdrawinfo',
    component: () => import('@/views/property/withdrawinfo')
  },
  {
    // 兑换
    path: '/exchange',
    name: 'exchange',
    component: () => import('@/views/property/exchange')
  },
  {
    // 我的
    path: '/personal',
    name: 'personal',
    component: () => import('@/views/personal')
  },
  {
    // 我的团队
    path: '/team',
    name: 'team',
    component: () => import('@/views/personal/team')
  },
  {
    // 初级认证
    path: '/primary',
    name: 'primary',
    component: () => import('@/views/personal/primary')
  },
  {
    // 高级认证
    path: '/advanced',
    name: 'advanced',
    component: () => import('@/views/personal/advanced')
  },
  {
    // 账变记录
    path: '/record',
    name: 'record',
    component: () => import('@/views/personal/record')
  },
  {
    // 极速持仓
    path: '/topspeed',
    name: 'topspeed',
    component: () => import('@/views/personal/topspeed')
  },
  {
    // 合约持仓
    path: '/contract',
    name: 'contract',
    component: () => import('@/views/personal/contract')
  },
  {
    // 钱包地址
    path: '/site',
    name: 'site',
    component: () => import('@/views/personal/site')
  },
  {
    // 添加钱包地址
    path: '/sitewallet',
    name: 'sitewallet',
    component: () => import('@/views/personal/sitewallet')
  },
  {
    // 银行账户
    path: '/bank',
    name: 'bank',
    component: () => import('@/views/personal/bank')
  },
  {
    // 添加银行卡（国际）
    path: '/bankinternational',
    name: 'bankinternational',
    component: () => import('@/views/personal/bankinternational')
  },
  {
    // 添加银行卡
    path: '/bankinternal',
    name: 'bankinternal',
    component: () => import('@/views/personal/bankinternal')
  },
  {
    // 我要分享
    path: '/share',
    name: 'share',
    component: () => import('@/views/personal/share')
  },
  {
    // 在线客服
    path: '/onlineservice',
    name: 'onlineservice',
    component: () => import('@/views/personal/onlineservice')
  },
  {
    // 帮助中心
    path: '/helpcenter',
    name: 'helpcenter',
    component: () => import('@/views/personal/helpcenter')
  },
  {
    // 设置中心
    path: '/setcenter',
    name: 'setcenter',
    component: () => import('@/views/personal/setcenter')
  },
  {
    // 修改昵称
    path: '/nickname',
    name: 'nickname',
    component: () => import('@/views/personal/nickname')
  },
  {
    // 设置提现密码
    path: '/withdrawdeposit',
    name: 'withdrawdeposit',
    component: () => import('@/views/personal/withdrawdeposit')
  },
  {
    // 修改登录密码
    path: '/amendregister',
    name: 'amendregister',
    component: () => import('@/views/personal/amendregister')
  },

  {
    // 登入
    path: '/login',
    name: 'login',
    component: () => import('@/views/login')
  },
  {
    // 注册
    path: '/register',
    name: 'register',
    component: () => import('@/views/login/register')
  },
  {
    // 区号
    path: '/areaCode',
    name: 'areaCode',
    component: () => import('@/views/login/areaCode')
  },
  {
    // 注册协议
    path: '/agreement',
    name: 'agreement',
    component: () => import('@/views/login/agreement')
  },
  {
    // 语言选择
    path: '/lang',
    name: 'lang',
    component: () => import('@/views/lang')
  }
]

const router = new VueRouter({
  base: process.env.BASE_URL,
  routes
})

export default router
